package IC.asm.decl;
import IC.asm.operands.Label;
import IC.asm.ASMEntry;
import IC.asm.Visitor;


public class LabelDecl extends ASMEntry {
	private final Label label; 

	/**
	 * @param label the label operand
	 */
	public LabelDecl(final Label label) {
		this.label = label;
	}

	/**
	 * @param label the label operand
	 */
	public LabelDecl(final String name) {
		this.label = new Label(name);
	}
	
	/**
	 * @return તહે લાબેલ
	 */
	public Label getLabel() {
		return label;
	}

	public String toString() {
		return label.getName()+":";
	}

	@Override
	public <D, U> U accept(Visitor<D, U> v, D d) {
		return v.visit(this, d);
	}
}
